<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ol class="" style="width:100%">
        <li>
            <div class="">
                <div class="">ADT 栈(stack)</div>
            </div>
        </li>
        <li>
            <div class="">
                <div class="hljs-ln-line"> Data</div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"> 同线性表。元素具有相同的类型，相邻元素具有前驱和后堆关系。</div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"> <span class="hljs-function"><span
                            class="hljs-function">Operation</span></span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> <span class="hljs-title">InitStack</span> <span
                            class="hljs-params">( *S )</span>：初始化操作.建立一个空栈S。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> <span class="hljs-title">DestroyStack</span>
                        <span class="hljs-params">( *S )</span>：若栈存在，則销毁它。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> <span class="hljs-title">ClearStack</span> <span
                            class="hljs-params">(*S)</span>：将栈清空。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> <span class="hljs-title">StackEmpty</span> <span
                            class="hljs-params">( S )</span>:若栈为空，返回true,否則返回 false。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> GetTop (S,*e)：若栈存在且非空，用e返回S的栈顶元素。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> Push (*S,e)：若栈S存在，插入新元素e到栈S中并成为栈頂元素。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> Pop (*S,*e)：删除栈S中栈顶元素，并用e返回其值。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> StackLength (S)：返回回栈S的元素个数。</span></div>
            </div>
        </li>
        <li>
            <div class="hljs-ln-code">
                <div class="hljs-ln-line"><span class="hljs-function"> endADT</span></div>
            </div>
        </li>
    </ol>
</body>

</html>